package itdep.domain.division;

import itdep.domain.CodedEntity;
import itdep.domain.TranslationType;

import javax.persistence.*;

/**
 * @author Ivan Khalopik
 * @version $Revision: 10 $ $Date: 2010-06-16 07:13:04 +0000 (Wed, 16 Jun 2010) $
 */
@Entity
@Table(name = "SPECIALIZATION")
public class Specialization extends CodedEntity {

	@ManyToOne
	@JoinColumn(name = "ID_SPECIALITY", nullable = false)
	private Speciality speciality;

	@ManyToOne
	@JoinColumn(name = "ID_QUALIFICATION", nullable = false)
	private Qualification qualification;

	@Column(name = "SPECIALIZATION_CODING", nullable = false)
	private String specializationCoding;

	public Specialization() {
		super("specialization", TranslationType.ABBREV);
	}

	public Speciality getSpeciality() {
		return speciality;
	}

	public void setSpeciality(Speciality speciality) {
		this.speciality = speciality;
	}

	public Qualification getQualification() {
		return qualification;
	}

	public void setQualification(Qualification qualification) {
		this.qualification = qualification;
	}

	public String getSpecializationCoding() {
		return specializationCoding;
	}

	public void setSpecializationCoding(String specializationCoding) {
		this.specializationCoding = specializationCoding;
	}
}